package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.dtos.ArticleInfoDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;

public interface ApArticleService extends IService<ApArticle> {

   ResponseResult load(ArticleHomeDto dto);

   ResponseResult loadmore(ArticleHomeDto dto);

   ResponseResult loadnew(ArticleHomeDto dto);



   void generate(Long articleId);


   /**
    * 保存app端相关文章
    * @param dto
    * @return
    */
   ResponseResult saveArticle(ArticleDto dto);


   void sendIndexUpdate(ApArticle apArticle,String content);

   /**
    * 加载文章详情 数据回显
    * @param dto
    * @return
    */
   ResponseResult loadArticleBehavior(ArticleInfoDto dto);

}